﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 面向对象练习
{
    internal class Teacher
    {
        //属性
        public string Name { get; set; }
        public string Id { get; set; }

        //行为
        public void SayNames(Student[] students,int count)
        {
            //foreach (Student student in students)
            //{
            //    student.SayDao();
            //}

            for (int i = 0;i < count;i++)
            {
                students[i].SayDao();
            }
        }
    }
}
